package com.yuhuihui.common.utils.excel.export.parameters;

import javax.servlet.http.HttpServletResponse;

/**
 * excel导出参数--单个sheet
 *
 * @author yuhh
 * @date 2022-08-22 16:20:35
 */
public class ExcelExportOneSheetParameter<T> {

    /**
     * response
     */
    private HttpServletResponse response;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * sheet参数
     */
    private ExcelExportSheetParameter<T> sheetParameter;


    public ExcelExportOneSheetParameter(HttpServletResponse response, String fileName, ExcelExportSheetParameter<T> sheetParameter){
        this.response = response;
        this.fileName = fileName;
        this.sheetParameter = sheetParameter;
    }

    public ExcelExportOneSheetParameter(){

    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public ExcelExportOneSheetParameter<T> setResponse(HttpServletResponse response) {
        this.response = response;
        return this;
    }

    public String getFileName() {
        return fileName;
    }

    public ExcelExportOneSheetParameter<T> setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public ExcelExportSheetParameter<T> getSheetParameter() {
        return sheetParameter;
    }

    public ExcelExportOneSheetParameter<T> setSheetParameter(ExcelExportSheetParameter<T> sheetParameter) {
        this.sheetParameter = sheetParameter;
        return this;
    }
}
